﻿<phone:PhoneApplicationPage     
    x:Class="SplashOn_Phone.ColorPickerPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="LandscapeLeft"
    mc:Ignorable="d" shell:SystemTray.IsVisible="False" 
    d:DesignHeight="480" d:DesignWidth="800">   
    
    <Canvas Background="{StaticResource PhoneBackgroundBrush}">

        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.ColumnDefinitions>                
                <ColumnDefinition Width="800" />                
            </Grid.ColumnDefinitions>                        
            
            <Rectangle Width="640" Height="480" HorizontalAlignment="Center" x:Name="CameraCrossHairs">
                <Rectangle.Fill>
                    <VideoBrush x:Name="viewfinderBrush" />
                </Rectangle.Fill>
            </Rectangle>

            <Line Width="640" Height="480" HorizontalAlignment="Center"
              X1="290" Y1="240" 
              X2="350" Y2="240" 
              Stroke="Red" Opacity="0.75" />

            <Line Width="640" Height="480" HorizontalAlignment="Center"
              X1="320" Y1="210" 
              X2="320" Y2="270" 
              Stroke="Red" Opacity="0.75" />

            <Ellipse HorizontalAlignment="Left" Width="44" 
                     Margin="378,220,0,218" Height="42" 
                     Stroke="Red"
                     Opacity="0.75"
                     />
            <Rectangle Width="106" Height="280"                                                
                       Margin="614,188,79,40" 
                       x:Name="last4ColorsFrame" 
                       Stroke="Gray"
                       StrokeThickness="1"
                       StrokeDashArray="1"
                       Fill="Gray"
                       Opacity="0.2"
                       />

            
            
            <TextBlock Height="51" Margin="511,14,99,0" Name="textBlock1" 
                       Text="{Binding colorText}" 
                       VerticalAlignment="Top" 
                       TextAlignment="Right" Width="190" 
                       />

            <Button Background="{Binding ArgbBrush}" Height="73" 
                    HorizontalAlignment="Left" 
                    Margin="630,79,0,0" Name="button4" 
                    VerticalAlignment="Top" Width="71" 
                    Tap="CurentColor_Tap" Click="button4_Click" />
            <Button Height="73" HorizontalAlignment="Left" 
                    Margin="630,379,0,0" Name="button3" 
                    VerticalAlignment="Top" Width="71" 
                    Background="{Binding ArgbBrushLast3}"
                    Tap="LastColor_Tap"
                    />
            <Button Background="{Binding ArgbBrushLast2}" Height="73" HorizontalAlignment="Left" 
                    Margin="630,290,0,0" Name="button2" 
                    VerticalAlignment="Top" Width="71" 
                    Tap="LastColor_Tap"
                    />
            <Button Background="{Binding ArgbBrushLast1}" Height="73" HorizontalAlignment="Left" 
                    Margin="630,203,0,0" Name="button1" 
                    VerticalAlignment="Top" Width="71" 
                    Tap="LastColor_Tap"
                    />

            <Rectangle Height="24" HorizontalAlignment="Left" 
                   Margin="321,451,0,0" Name="rectangle1" Stroke="Black" 
                   StrokeThickness="1" VerticalAlignment="Top" 
                   Width="399" Fill="AntiqueWhite" Opacity="0.75"
                   />            
            <TextBlock Height="24" HorizontalAlignment="Right"
                   Margin="0,451,190,0" Name="textBlock3" 
                   Text="Game Page" VerticalAlignment="Top" 
                   Width="155" Foreground="Blue"
                   TextAlignment="Center" FontWeight="ExtraBold"
                   FontSize="18" FontStretch="Expanded"
                   />
            <TextBlock Height="24" HorizontalAlignment="Left"
                   Margin="321,451,0,0" Name="textBlock4" 
                   Text="Color Picker" VerticalAlignment="Top" 
                   Width="155" Foreground="Blue"
                   TextAlignment="Center" FontWeight="ExtraBold"
                   FontSize="18" FontStretch="Expanded"
                   />
            <TextBlock Height="24" HorizontalAlignment="Left"
                   Margin="586,451,0,0" Name="textBlock5" 
                   Text="Object Picker" VerticalAlignment="Top" 
                   Width="155" Foreground="Blue"
                   TextAlignment="Center" FontWeight="ExtraBold"
                   FontSize="18" FontStretch="Expanded"
                   />           
            <Ellipse Canvas.Left="608" Canvas.Top="560" 
                     Height="250" Width="250"
                 Name="ellipse1" Stroke="{Binding ArgbBrush}" 
                 StrokeThickness="40" Margin="274,123,276,127" />
        </Grid>
        
    </Canvas>
    
</phone:PhoneApplicationPage>
